import { ref } from 'vue'
import { getParkInfoAPI } from '@/apis/park'
export const useParkInfo = () => {
  // 声明响应式数据
  const parkInfo = ref({})
  // 查询楼宇概况
  const getParkInfo = async () => {
    const res = await getParkInfoAPI()
    // console.log(res)
    parkInfo.value = res.data
  }

  return {
    getParkInfo,
    parkInfo
  }
}